{% extends "layout.html" %}
{% block body %}
<ul class="view">
    <li>

        <h2>{{view[1]}}</h2>
        <h5>author id:&nbsp{{view[0]}}</h5>
        {{view[2]|safe}}
        <h5>comment list</h5>
        {%for comment_row in com_list %}
            <h5>comment_author_id:{{comment_row[0]}}</h5>
            {{comment_row[1]}}
        {%endfor%}

    </li>
</ul>

{% if session.logged_in %}
<form action="{{url_for('view_blog',entry_id=id)}}" method="post" class="comment-entry">
    <dl>
        <dt>Comment:</dt>
        <dd><textarea name="text" rows="5" cols="40"></textarea></dd>
        <dd><input type="submit" name="comment"></dd>
    </dl>
</form>
{% endif %}
{% endblock body %}